import sympy as sp

# 定义符号变量
x = sp.Symbol('x')

# 定义函数F(x) = x^2 + C
C = 3  # 可以尝试改变C的值：1, -5, 100...
F = x**2 + C

# 计算导数
derivative = sp.diff(F, x)
print(f"F(x) = {F} 的导数是：{derivative}")